    function selectAll(){
      var myCheckBox = document.getElementsByName("MyCheckBox");         
      for(var i=0;i<myCheckBox.length;i++){
         myCheckBox[i].checked = true;
        }
    }
    function selectOthers(){
      var myCheckBox = document.getElementsByName("MyCheckBox");
      for(var i=0;i<myCheckBox.length;i++){
		 if(myCheckBox[i].checked == true){
			myCheckBox[i].checked = false;
		 }else{ 
			myCheckBox[i].checked = true; 
		 }
       }
     }
     function cancelSelect(){
       var myCheckBox = document.getElementsByName("MyCheckBox");
        for(var i =0 ; i<myCheckBox.length;i++){
             myCheckBox[i].checked = false;
        }
     }
     //删除新闻
     function delAllDate(){
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location="/admin/managerNew.do?method=delNewsByStr&str="+temp;
         }
      }
     }
     //删除留言回复
     function delAllQuestion(){
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                
                location="/admin/managerQuestion.do?method=delQuestionByStr&str="+temp;
         }
      }
     } 
     //删除友情链接
      function delAllLink(type){
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location="/admin/managerLink.do?method=delLinkByStr&str="+temp+"&type="+type;
         }
      }
     } 
      //删除链接分类
      function delAllLinkClass(){
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location="/admin/linkClass.do?method=delAll&str="+temp;
         }
      }
     } 
    //删除通讯录
      function delAllTxl(){
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location="/admin/txlAction.do?method=delSelect&str="+temp;
         }
      }
     } 
    //删除值班表所选择信息
      function delAllZbb(){
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location="/admin/zbbAction.do?method=delSelect&str="+temp;
         }
      }
     } 
      //删除信箱所选择信息
      function delAllZdzxx(){
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location="/admin/zdzxxAction.do?method=delSelect&str="+temp;
         }
      }
     } 
    //删除所选签收用户信息
      function delAllqsyh(){
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location="/admin/signUnitAction.do?method=delSelect&str="+temp;
         }
      }
     } 
     //删除链接分类
      function delAll(url){
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location=url+temp;
         }
      }
     } 
      //删除专家领导
      function delAllLeader(){
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location="/admin/managerLeader.do?method=delLeaderByStr&str="+temp;
         }
      }
     } 
     //删除短信
     function delAllMessage(){
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location="/admin/infoMessage.do?method=delLeaderByStr&str="+temp;
         }
      }
     } 
   //删除招聘分类
   function delAllJc(){
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location="/admin/manageJc.do?method=delJcByStr&str="+temp;
         }
      }
     }  
     function delAllCan() {
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location="/admin/managerCandidate.do?method=delCanByStr&str="+temp;
         }
      }
     } 
     
     function  delAllMagecon() {
          var flag = true;
          var temp = "";
          var tmp ;
          if((document.getElementsByName("MyCheckBox").length+"")=="undefined"){
            tmp=1;
          }else{
            tmp=document.getElementsByName("MyCheckBox").length;
          }
          if(tmp==1){
            if(document.getElementsByName("MyCheckBox")[0].checked){
              flag = false;
              temp = document.getElementsByName("MyCheckBox")[0].value;
            }
          }else{
              for(var i=0;i<document.getElementsByName("MyCheckBox").length;i++){
                if(document.getElementsByName("MyCheckBox")[i].checked){
                  if(temp == ""){
                    flag = false;
                    temp = document.getElementsByName("MyCheckBox")[i].value;
                  }else{
                    flag = false;
                    temp = temp + "," + document.getElementsByName("MyCheckBox")[i].value;
                }
              }
            }
          }
      if(flag){
        alert("对不起，您还没有选择");
        return false;
      }else{
         if(confirm("确定删除所选信息吗?")){
                location="manageMagecontent.do?method=delAllCon&str="+temp;
         }
      }
     }
     
     